+2008-04-16 Tristan Van Berkom <tvb@gnome.org>
+
+ * gtk/gtkwindow.c: Chain up in buildable_finish()
+
+ * gtk/gtkbuilder.c: _gtk_builder_get_absolute_filename() handle
+ cases where g_path_get_dirname() returns "."
+
+ * docs/reference/gtk/tmpl/gtklabel.sgml,
+ docs/reference/gtk/tmpl/gtkbuilder.sgml: Added documentation
+ for the <attributes> tags on GtkLabel
+
2008-04-15 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c:
These XML fragments are explained in the documentation of the
respective objects, see
<link linkend="GtkWidget-BUILDER-UI">GtkWidget</link>,
+<link linkend="GtkLabel-BUILDER-UI">GtkLabel</link>,
<link linkend="GtkContainer-BUILDER-UI">GtkContainer</link>,
<link linkend="GtkDialog-BUILDER-UI">GtkDialog</link>,
<link linkend="GtkCellLayout-BUILDER-UI">GtkCellLayout</link>,
#GtkButton, a #GtkMenuItem, or a #GtkOptionMenu.
</para>
+<refsect2 id="GtkLabel-BUILDER-UI">
+<title>GtkLabel as GtkBuildable</title>
+<para>
+The GtkLabel implementation of the GtkBuildable interface supports a
+custom <attributes> element, which supports any number of <attribute>
+elements. the <attribute> element has attributes named name, value,
+start and end and allows you to specify #PangoAttributs for this label.
+</para>
+<example>
+<title>A UI definition fragment specifying pango attributes</title>
+<programlisting><![CDATA[
+<object class="GtkLabel">
+ <attributes>
+ <attribute name=\"weight\" value=\"PANGO_WEIGHT_BOLD\"/>
+ </attributes>
+</object>
+]]></programlisting>
+</example>
+</refsect2>
+
+
<refsect2>
<title>Mnemonics</title>
return g_strdup (string);
if (builder->priv->filename &&
- strcmp (builder->priv->filename, ".") != 0)
- dirname = g_path_get_dirname (builder->priv->filename);
+ strcmp (builder->priv->filename, ".") != 0)
+ {
+ dirname = g_path_get_dirname (builder->priv->filename);
+
+ if (strcmp (dirname, ".") == 0)
+ {
+ g_free (dirname);
+ dirname = g_get_current_dir ();
+ }
+ }
else
dirname = g_get_current_dir ();
if (priv->builder_visible)
gtk_widget_show (GTK_WIDGET (buildable));
+
+ parent_buildable_iface->parser_finished (buildable, builder);
}
/**